import vue from '@vitejs/plugin-vue'
// vant 自动导入
import AutoImport from 'unplugin-auto-import/vite';
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from '@vant/auto-import-resolver';
//

// 默认配置
export default {
    // 端口
    server: {
        port: 5900,
    },
    plugins: [
        // vue插件
        vue(),
        // vant 自动导入
        AutoImport({
            resolvers: [VantResolver()],
        }),
        Components({
            resolvers: [VantResolver()],
        }),
        //
    ],
};
